home *** CD-ROM | disk | FTP | other *** search
-
- dofile.rexx 2.0 - by Rolf Rotvel.
-
- DESCRIPTION
- Recognizes type of file using datatypes.library and launches
- corresponding viewer.
-
- Now you can use your favorite GIF, JPEG, etc viewer instead of Multiview
- and still have the advantages of the datatypes.library filetype
- recognition.
-
- Very usefull when installed as a do-it-all appicon in Toolmanager (You
- can use the enclosed app.info), but also works nicely from CLI.
-
- REQUIREMENTS
- Workbench 3.x with lots of datatypes installed. Rexxreqtools.library.
-
- CONFIGURATION
- Edit the config section of the script. You probably only need to change
- the defdir line.
-
- Edit the enclosed DoFile.prefs file. The format is <filetype> <command>
- where <filetype> is what datatypes.library knows the file as and
- <command> is the corresponding viewer/player/editor/etc. <command> must
- be enclosed in quotes.
- If in doubt about the <filetype) you can either run Multiview on the
- file and check the about requester or use the enclosed getdtyp.rexx
- script.
- Some examples:
- GIF "cc:visage"
- Amiga .info File "cc:fasticon"
-
- There are two exceptions to the prefs file format: When DoFile
- encounters an ascii or a binary file it will check the file for any
- suffix or prefix (Eg: .lha or MOD.). You can then have separate entries
- for C source files, Arexx scripts, modules etc The format is <extension>
- <command> (Don't worry about case). Examples:
- .REXX "c:edit"
- S3M. "c:moduleplayer"
-
- Copy the prefs file to envarc: and env: or whereever you want to put it.
-
- NOTES ON USAGE
- If you pass a directory or nothing as argument it will open a
- filerequester.
-
- It handles spaces in filenames pefectly. Both from WB and CLI.
-
- COPYRIGHT
- No copyright. Do whatever you want with this.
-
- DISCLAIMER
- It's your fault :-)
-
- AUTHOR
- Please send any comments to me. I can be reached at 2:238/38.0@fidonet
- or 39:140/110.0@amiganet. Email: rolf@hoa.ping.dk
-
- HISTORY
- 1.4 First release
- 2.0 Second release :-)
-